package pakeage03;

import java.util.Random;

public class Computer {
    String name ;
    public String[] names = {"曹操","刘备","孙权"};
    int score ;

    Random r = new Random();
    public int showhand(){
        int n = r.nextInt(2)+1;

        return n;
    }
    public void selectName(){
        int index = r.nextInt(names.length);
        this.name = names[index];
    }
}
